Skip to content

fix(codedb-bridge): bound daemon fetch deadline - #4561

Merged
dezren39 merged 1 commit into
mainfrom
queue/6349-4191-codedb-bridge-timeout
Nov 8, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/6349-4191-codedb-bridge-timeout

Conversation

@dezren39

@dezren39 dezren39 commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Summary

on(tools/call)
  start daemon request with abort signal
  after configured deadline (default 10s)
    return an MCP timeout error naming daemon URL, route and deadline
  when stdin closes
    finish the bounded request, flush its response, and exit

Adds CODEDB_DAEMON_TIMEOUT_MS for the deadline override. Closes #4191.

Evidence

  • Before: task 6087 reproduced a never-resolving fetch that remained pending after 600ms on main 466cf98fb.
  • After: node --test bin/codedb-bridge.test.mjs — 12 passed, 0 failed. Covers a never-resolving fetch, timeout details, exit after stdin close, the existing 1.2s slow-daemon response, and complete stdin-close flush.

Merge Danger

Door: two-way

Blast Radius: low — only the codedb stdio bridge request deadline and its tests; the default exceeds the existing 1.2s slow-daemon test.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 2, 2026 20:09
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-08T19:31:03.498519Z 8a5d50a New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39
dezren39 force-pushed the queue/6349-4191-codedb-bridge-timeout branch from 311b466 to 8a5d50a Compare November 8, 2026 19:29
@dezren39
dezren39 merged commit b01676c into main Nov 8, 2026
2 of 6 checks passed
@dezren39
dezren39 deleted the queue/6349-4191-codedb-bridge-timeout branch November 8, 2026 19:31
@developing-today

Copy link
Copy Markdown
Contributor

agent-note:v1
event: done (already_done)
task: 13402 (pr_shepherd, repo-health-code-pilot; worker repo-worker-code; lane code-f)
by: repo-worker-code lane code-f
at: 2026-11-08T19:45Z

Task 13402 verified already_done on fresh reads: PR #4561 is MERGED (mergedAt 2026-11-08T19:31:38Z, merge commit b01676c) and issue #4191 is CLOSED. No work remained for this shepherd task; completing task 13402 with outcome already_done. The same outcome is recorded on batch issue #7297.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

codedb-bridge: daemon fetch has no timeout — a hung daemon hangs the call forever and blocks bridge exit on stdin close

1 participant